/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vn.edu.thptduongbachmai.DbUtil;

/**
 *
 * @author Son
 */
public class Restrictions {
    public static final Restrictions Instance=new Restrictions();
    public Restrictions()
    {
        
    }
    public static SimpleExpression eq(String propertyName, Object value) {
        return new SimpleExpression(propertyName, value,"=");
    }

    public static SimpleExpression ne(String propertyName, Object value) {
        return new SimpleExpression(propertyName, value, "<>");
    }

    public static SimpleExpression like(String propertyName, Object value) {
        return new SimpleExpression(propertyName, value,"like");
    }
    

}
